<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<h1>Đổi mật khẩu</h1>

<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'changePassword-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true
        )
    ));
    ?>

    <p class="note">
        Fields with <span class="required">*</span> are required.
    </p>

    <div class="row">
        <?php echo $form->labelEx($model, 'oldPassword'); ?>
        <?php echo $form->passwordField($model, 'oldPassword'); ?>
        <?php echo $form->error($model, 'oldPassword'); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'newPassword'); ?>
        <?php echo $form->passwordField($model, 'newPassword'); ?>
        <?php echo $form->error($model, 'newPassword'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'newPassword_repeat'); ?>
        <?php echo $form->passwordField($model, 'newPassword_repeat'); ?>
        <?php echo $form->error($model, 'newPassword_repeat'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton('OK'); ?>
    </div>

    <?php $this->endWidget(); ?>
